package com.groupbuying.customer.service;

import com.groupbuying.customer.domain.CustomerDO;
import com.groupbuying.customer.domain.CustomerInfoDO;
import com.groupbuying.customer.utils.apiresult.ApiResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * 会员基础信息
 * 
 * @author wenguoqiang
 * @email 17081@mengtaigroup.com
 * @date 2019-01-11 09:20:50
 */
public interface CustomerInfoService {
	
	CustomerInfoDO get(String uuid);
	
	List<CustomerInfoDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(CustomerInfoDO info);
	
	int update(CustomerInfoDO info);
	
	int remove(String uuid);
	
	int batchRemove(String[] uuids);

	/**
	 * 会员基础信息增加addPinyinCustomerInfo
	 * @param customer 会员基础信息实体
	 * @param imgFiles 上传的头像
	 * @return uuid  会员基础信息uuid
	 *
	 */
	String addPinyinCustomerInfo(CustomerDO customer, MultipartFile[] imgFiles);

	/**
	 *  获取会员信息
	 */
	ApiResult getUserInfo(Map<String, Object> map);

	/**
	 *  获取会员id
	 */
	ApiResult getCustomer(String customerId);
}
